package com.example.tests;

import static org.hamcrest.Matchers.equalTo;
import static org.junit.Assert.assertThat;

import org.testng.annotations.Test;

import com.example.utils.SortedListOf;

public class PrintPhonesTests extends TestBase
{
	@Test
	public void checkPrintPhonesList()
	{
		SortedListOf<PrintPhonesData> oldList = app.getPrintPhonesHelper().getContactsFromMainPage();
		if (oldList.size() > 0)
		{
			SortedListOf<PrintPhonesData> newList = app.getPrintPhonesHelper().getContactsFromPrintPhones();

			assertThat(newList, equalTo(oldList));
		}
	}
}